package a.f.h.e;

import a.c.d;
import a.c.m;
import a.c.x;
import a.c.y;
import a.f.h.b.j;
import a.f.h.b.l;
import a.f.h.c.h;
import a.f.o;
import a.i.mb;

public class f
  implements l
{
  public static final short a = 0;
  public static final short b = 1;
  public static final short c = 2;
  private a.f.h.b.f d;
  private o e;
  private short f = 0;
  private short g = 0;
  private int h = 3;
  public int i;
  private boolean j = false;
  private a.f.h.b.i k;
  public static boolean l;
  
  public void a(a.f.h.b.f paramf)
  {
    this.d = paramf;
    this.e = ((o)this.d.a());
  }
  
  public void a(int paramInt)
  {
    this.i = paramInt;
  }
  
  public void a(a.f.h.b.i parami)
  {
    this.k = parami;
  }
  
  public void a(short paramShort)
  {
    this.f = paramShort;
  }
  
  public void b(short paramShort)
  {
    this.g = paramShort;
  }
  
  public void b(int paramInt)
  {
    this.h = paramInt;
  }
  
  public int b()
  {
    return this.h;
  }
  
  public void a(boolean paramBoolean)
  {
    this.j = paramBoolean;
  }
  
  public boolean c()
  {
    return this.j;
  }
  
  public void a()
  {
    boolean bool = a.v;
    int i2 = a.u;
    a.i.n.a(this, "------->>> Entering Compaction Phase");
    mb localmb = new mb();
    d[] arrayOfd = this.e.u();
    int m = 0;
    do
    {
      if (m >= arrayOfd.length) {
        break;
      }
      localObject2 = arrayOfd[m];
      if (i2 != 0) {
        break label88;
      }
      if (!bool)
      {
        if (!this.d.d((d)localObject2)) {
          this.d.o((d)localObject2);
        }
        m++;
      }
    } while (i2 == 0);
    label88:
    Object localObject1 = this.d.a().w();
    if (((m)localObject1).e()) {
      this.d.c(((m)localObject1).a(), 1);
    }
    while (bool)
    {
      if (!bool)
      {
        if (i2 != 0) {
          break label159;
        }
        this.d.c(((m)localObject1).a(), 1.0D);
        ((m)localObject1).f();
      }
      if (i2 == 0) {
        break;
      }
    }
    label159:
    localObject1 = this.e.c("y.layout.orthogonal.general.NodeSplitter.NODE_FACES");
    if (!bool) {
      label387:
      label396:
      if (this.f == 1)
      {
        localObject2 = this.d.c();
        label320:
        do
        {
          if (!((y)localObject2).e()) {
            break;
          }
          do
          {
            localObject3 = (a.f.j.n)((y)localObject2).j();
            if ((!bool) && (i2 != 0)) {
              break label420;
            }
            if (bool) {
              break label396;
            }
            if (!((a.c.k)localObject1).getBool(localObject3)) {
              break label387;
            }
            a.c.e[] arrayOfe = new a.c.e[4];
            Object localObject4 = ((a.f.j.n)localObject3).a();
            do
            {
              if (!((m)localObject4).e()) {
                break label320;
              }
              localObject5 = ((m)localObject4).a();
              if (i2 != 0) {
                break;
              }
              if (this.d.e((d)localObject5) == 1) {
                arrayOfe[this.d.i(localObject5).h()] = ((d)localObject5).e();
              }
              ((m)localObject4).f();
            } while (i2 == 0);
            localObject4 = new j(arrayOfe[1], arrayOfe[0], 2, 1, a.f.h.b.k.b);
            this.d.a((j)localObject4);
            localObject5 = new j(arrayOfe[2], arrayOfe[1], 2, 1, a.f.h.b.k.c);
          } while (bool);
          this.d.a((j)localObject5);
          ((y)localObject2).f();
        } while (i2 == 0);
      }
    }
    this.k.h = ((int)localmb.d());
    if (!bool) {
      localmb.g();
    }
    label420:
    Object localObject2 = new a.f.h.c.n();
    ((a.f.h.c.n)localObject2).a(this.h);
    if (!bool) {}
    switch (this.g)
    {
    case 0: 
      ((a.f.h.c.n)localObject2).a(new a.f.h.c.f());
      ((a.f.h.c.n)localObject2).a(new h());
      if (!bool) {
        if (i2 == 0) {
          break label574;
        }
      }
    case 1: 
      ((a.f.h.c.n)localObject2).a(new a.f.h.c.e());
      ((a.f.h.c.n)localObject2).a(new h());
      if (!bool) {
        if (i2 == 0) {
          break label574;
        }
      }
    case 2: 
      ((a.f.h.c.n)localObject2).a(new a.f.h.c.i());
      ((a.f.h.c.n)localObject2).a(new h());
      if (i2 == 0) {
        break label574;
      }
    }
    a.i.n.a("Unknown Compactor !");
    label574:
    Object localObject3 = this.e.B();
    ((a.f.h.c.n)localObject2).a(this.d);
    ((a.f.h.c.n)localObject2).a(this.j);
    ((a.f.h.c.n)localObject2).a((x)localObject3);
    this.k.i = ((int)localmb.d());
    localmb.g();
    int n = this.i;
    int i1 = this.i;
    Object localObject5 = this.e.v();
    do
    {
      if (!((a.c.w)localObject5).e()) {
        break;
      }
      a.c.e locale = ((a.c.w)localObject5).d();
      a.d.w localw1 = (a.d.w)((x)localObject3).get(locale);
      a.d.w localw2 = new a.d.w(localw1.a() * n, localw1.b() * i1);
      ((x)localObject3).a(locale, localw2);
      this.e.a(locale, localw2.a(), localw2.b());
      ((a.c.w)localObject5).f();
      if ((!bool) && (i2 != 0)) {
        return;
      }
    } while (i2 == 0);
    this.e.a((x)localObject3);
    this.k.j = ((a.f.h.c.n)localObject2).c();
    this.k.k = ((a.f.h.c.n)localObject2).d();
    this.k.l = ((a.f.h.c.n)localObject2).e();
    this.k.m = ((a.f.h.c.n)localObject2).f();
    a.i.n.a(this, "Prof: -> Total running time of compaction Phase: " + localmb);
    if (!bool) {
      a.i.n.a(this, "<<<------- Leaving Compaction Phase");
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.e.f

 * JD-Core Version:    0.7.0.1

 */